import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.SWT;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.layout.FillLayout;
import swing2swt.layout.BorderLayout;
import org.eclipse.swt.widgets.Control;



public class MainLayout {

	/**
	 * @wbp.parser.entryPoint
	 */
	public void MainLayout(Shell shell){

		
		final Shell dialog = new Shell(shell, SWT.RESIZE|SWT.DIALOG_TRIM|	SWT.MAX|SWT.MIN);

		FormData fd_dialog = new FormData();
		fd_dialog.left = new FormAttachment(0, 50, 0);
		dialog.setLayoutData(fd_dialog);
		dialog.setText("shell");
		dialog.setSize(502, 275);
		dialog.setLayout(new FormLayout());
		
		Composite composite = new Composite(dialog, SWT.NONE);
		composite.setBackground(SWTResourceManager.getColor(SWT.COLOR_CYAN));
		FormData fd_composite = new FormData();
		fd_composite.bottom = new FormAttachment(0, 247);
		fd_composite.right = new FormAttachment(0, 496);
		fd_composite.top = new FormAttachment(0);
		fd_composite.left = new FormAttachment(0);
		composite.setLayoutData(fd_composite);
		composite.setLayout(new FormLayout());
		dialog.setTabList(new Control[]{composite});
		dialog.open();
		
	}
}
